SftTree/NET 2.0

Selected Property, ItemClass Class

Softel vdm, Inc.

Defines whether this item is selected.

Syntax      ItemClass Class (Softelvdm.SftTreeNET)

VB   

Public Property Selected As Boolean

C#   

public bool Selected { get; set; }

C++   

public: property bool Selected {
        bool get();
        void set(bool value);
}

Property Value

True if selected, otherwise False.

Comments

The Selected property defines whether this item is selected.

The Selected property is only available if the SelectionStyle property allows item selection (SelectionStyleEnum.SingleItem, SelectionStyleEnum.MultipleItems). It cannot be used if cell selection (SelectionStyleEnum.SingleCell, SelectionStyleEnum.MultipleCells, SelectionStyleEnum.BlockOfCells) is in effect.

When an item is selected, the SelectionChanged event occurs.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com